﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AutoMapper;

namespace HCQ2_Model.ClassRoom
{
    /// <summary>
    /// 保存直播课堂录播视频参数
    /// </summary>
    public class ClassRoomSaveVideoDto
    {
        /// <summary>
        /// 【必填】用户ID
        /// </summary>        
        [Required(ErrorMessage = "用户ID不能为空")]
        [IgnoreMap]
        public string userid { get; set; }

        /// <summary>
        /// 【必填】课堂ID
        /// </summary>
        [Required(ErrorMessage = "课堂ID必填")]
        public int? RmId { get; set; }
        /// <summary>
        /// 【必填】视频地址
        /// </summary>
        [Required(ErrorMessage = "视频地址必填")]
        public string VideoUrl { get; set; }
        /// <summary>
        /// 【必填】课堂是否结束
        /// </summary>
        [Required(ErrorMessage = "课堂是否结束必填")]
        public bool? IfFinish { get; set; }
    }
}
